//
//  CircleView.h
//  circleScrollerView
//
//  Created by boleguigu_dev1 on 16/6/5.
//  Copyright © 2016年 宁波伯乐硅谷网络科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CircleView : UIView

typedef void(^CircleViewDidSelectBlock)(NSInteger index);
typedef void(^CircleViewDidChangeBlock)(NSInteger index);

- (void)setDidSelectBlock:(CircleViewDidSelectBlock)didSelectBlock;
- (void)setDidChangeBlock:(CircleViewDidChangeBlock)didChangeBlock;

@property (nonatomic, strong) UIImage *defaultImage;
@property (nonatomic, assign, getter = isPause) BOOL pause;
@property (nonatomic, strong) UIColor *currentIndicatorTintColor;
@property (nonatomic, strong) UIColor *indicatorTintColor;
@property (nonatomic, assign) CGPoint indicatorOffset;
@property (nonatomic, readonly) CGSize indicatorSize;
@property (nonatomic,strong)NSArray *items;//图片网址的字符串或者UIImage类型

- (void)setAutoPagingForInterval:(NSTimeInterval)timeInterval;

//初始化方法
-(instancetype)initWithFrame:(CGRect)frame items:(NSArray *)items defaultImage:(UIImage *)image autoPagingForInterval:(NSTimeInterval)timeInterval DidSelectBlock:(CircleViewDidSelectBlock)didSelectBlock;

@end
